<style type="text/css">
html, body {
	background-color: #fff;
	color: #000;
}
.divDebug table, td {
	border-collapse: collapse;
}
.divDebug {
	border: 1px #111 outset;
	background-color:#88c0b8;
	padding:5px;
}
.divTitle {
	font-size:2em;
	font-weight:bold;
	padding:5px;
}
.tblDebug, .tblDebug td {
	border:1px #111 outset;
	font-size:12px;
}
.tblDebug td {
	padding:5px;
}
.tblDebug .tdDate {
	width:150px;
}
.tblDebug .tdTime {
	text-align:center;
}
.tblDebug .tdMemory {
	text-align:right;
}
</style>
<div class="divDebug">
  <div class="divTitle">系统开销</div>
  <table class="tblDebug">
    <tr>
      <td>模块</td>
      <td class="tdTime">耗时</td>
      <td class="tdMemory">内存开销(byte)</td>
    </tr>
    <?php foreach($arrHtml['arrDebugInfo'] as $strDebugType =>$arrDebugInfo){ ?>
    <tr>
      <td><?php echo $strDebugType; ?></td>
      <td class="tdTime"><?php echo number_format($arrDebugInfo['TIMECOST'],8); ?></td>
      <td class="tdMemory"><?php echo number_format($arrDebugInfo['MEMORYCOST']); ?></td>
    </tr>
    <?php } ?>
  </table>
  <div class="divTitle">系统信息</div>
  <table class="tblDebug">
    <tr>
      <td class="tdTime tdDate">发送时间</td>
      <td class="tdTime">相对时间</td>
      <td>内容</td>
    </tr>
    <?php foreach($arrData['arrDebugMsg'] as $arrDebugMsg){ ?>
    <tr>
      <td class="tdTime"><?php echo date('Y-m-d H:i:s',$arrDebugMsg['TIME']); ?></td>
      <td class="tdTime"><?php echo number_format($arrDebugMsg['TIMECOST'],8); ?></td>
      <td><?php echo $arrDebugMsg['MESSAGE']; ?></td>
    </tr>
    <?php } ?>
  </table>
  <div class="divTitle">系统参数</div>
  <table class="tblDebug">
    <tr>
      <td>POST</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['POST'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><?php echo $mixValue; ?></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
    <tr>
      <td>GET</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['GET'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><?php echo $mixValue; ?></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
    <tr>
      <td>URL</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['URL'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><?php echo $mixValue; ?></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
    <tr>
      <td>COOKIE</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['COOKIE'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><?php echo $mixValue; ?></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
    <tr>
      <td>SERVER</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['SERVER'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><?php echo $mixValue; ?></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
    <tr>
      <td>CONFIG</td>
      <td><table>
          <?php foreach($arrHtml['arrDebugParam']['CONFIG'] as $strKey => $mixValue ){ ?>
          <tr>
            <td><?php echo $strKey; ?></td>
            <td><table>
                <?php foreach($mixValue as $strSubKey => $mixSubValue){ ?>
                <tr>
                  <td><?php echo $strSubKey; ?></td>
                  <td><?php
                            if(is_bool($mixSubValue)){
                                echo $mixSubValue?'true':'false';
                            }else{
                                print_r($mixSubValue);
                            }
                        ?>
                  </td>
                </tr>
                <?php } ?>
              </table></td>
          </tr>
          <?php } ?>
        </table></td>
    </tr>
  </table>
</div>
